package com.chen.blog.service;

import com.chen.blog.common.api.CommonResult;
import com.chen.blog.model.Admin;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.blog.vo.PwdVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author chen
 * @since 2022-01-24
 */
public interface AdminService extends IService<Admin> {

    /**
     * 获取指定用户信息功能
     *
     * @param username
     * @return
     */
    Admin getAdminByUserName(String username);

    /**
     * 更新用户密码功能
     *
     * @param pwdVo
     * @return
     */
    CommonResult updatePwd(PwdVo pwdVo);
}
